package cn.walls1717.ggkt.client.user;

import cn.walls1717.ggkt.model.user.UserInfo;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 用户远程调用接口
 *
 * @author walls1717
 * @since 2022/7/18
 **/
@Api(tags = "用户远程调用相关接口")
@FeignClient("service-user")
public interface UserInfoFeignClient {

    /**
     * 根据用户id查询用户信息
     *
     * @param id 用户id
     * @return 用户信息
     */
    @ApiOperation("根据用户id查询用户信息")
    @GetMapping("/admin/user/userInfo/inner/getById/{id}")
    UserInfo innerGetUserById(@PathVariable Long id);
}
